using System;

[Serializable]
public class DestroyAchievement : Achievement
{
	public WeaponType neededCarType = WeaponType.Car;

	public bool CheckAchievement(KillInfo killInfo, WeaponType carType)
	{
		if (carType != neededCarType)
		{
			return false;
		}
		return true;
	}

	public override void Init()
	{
		base.Init();
		AchievementsManager.instanse.allDestroyAchievements.Add(this);
	}
}
